home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource Library: Multimedia
/
Resource Library: Multimedia.iso
/
hypertxt
/
msdos
/
montanac
/
jns.026
< prev
next >
Wrap
Text File
|
1993-04-06
|
8KB
|
158 lines
THE VAX TOOLBOX / This item is <abridged>
-------------------------------------------------------------------------------
######### ### ### ### ### ### ###
### ### ### ### ##### ### ###
### ######## ####### ### ### ### ### #####
### #### ### ### ### ### ### ### ### ###
### ### ### ######### ### ### ######### #####
### ### ### ### ##### ### ### ### ###
### ### ### ####### ### ### ### ### ###
######### #### ###
### ### ###
### ####### ####### ### ######## ####### ### ###
### ### ### ### ### ### #### ### ### ### ### ###
### ### ### ### ### ### ### ### ### ### #####
### ### ### ### ### ### #### ### ### ### ### ###
### ####### ####### ##### ######## ####### ### ###
-------------------------------------------------------------------------------
The VAX Toolbox - Issue #006 - October, 1986 (Distribution 170)
-------------------------------------------------------------------------------
Contents
Editorial . . . . . . . . . . . . . . . . . . . . . . . . 1
Centering the Easy Way: An XEDT Modification. . . . . . . 2
A Possible Use of the SET PROMPT command. . . . . . . . . 3
Remembering Directories Is Easy With PUSH_POP . . . . . . 4
Killing Files . . . . . . . . . . . . . . . . . . . . . . 9
General Information . . . . . . . . . . . . . . . . . . .12
Editorial
Bob Boag [BOAG@MUVMS1]
Well, here we are again - Finally! I know you all have been waiting so very
long for this issue, and I'd like to use this first paragraph to say "I'm
Sorry!". Really, I just had too many other things going on and couldn't seem
to find enough time to work on The VAX Toolbox to get the issue ready. I'm not
really sure it is ready now, but I'm going to send it out anyway. I plan to
have another issue out real soon to help make up for the long wait since the
last issue.
Recently, I was thinking about changing The VAX Toolbox to a bimonthly (every
other month) production. I have changed my mind. I am going to try to keep
The VAX Toolbox in publication each and every month. (I'll admit that I may
fall behind sometimes, but I'll try my best to get each issue out as soon as
possible).
Has anyone noticed that distribution is up? Yes folks, this magazine is really
becoming popular - thanks to all of you subscribers! For your information,
when the last issue went out, only 60 subscribers existed!
Well, before I let you jump into this issue I wanted to make one thing real
clear. I am no longer taking subscriptions or request for back issues of this
magazine via the id [BOAG@MUVMS1]. See the General Information section at the
end of this issue for information on subscriptions and back issues. Oh yes,
I'd also like to thank Marc Shannon and Harri Salminen for allowing me to use
LISTSERV to distribute The VAX Toolbox.
Centering the Easy Way: An XEDT Modification
Howard D. Adkins, II [MU164113@WVNVAXA]
Centering a line using a VAX Editor has always been a pain. This is because
one, they are editors not word processors; and two, who needs to center when
programming. One solution is to count spaces and manually put the spaces in.
Another is use RUNOFF (who wants to use RUNOFF for one line). And if your
lucky, your computer center provides Digital's ALL-IN-1 with centering built-in
to EDT.
So after giving it some thought, I started work with XLATE_ROUTINE to see if it
could do it for me. Thus was the creation of a new XLATE_ROUTINE.
-------------------------------------------------------------------------------
Update for XLATE_ROUTINE.BAS
-------------------------------------------------------------------------------
CASE "CENTER"
TEMP$ = ""
CALL SMG$CREATE_PASTEBOARD (PASTEBOARD_ID%)
CALL SMG$DELETE_PASTEBOARD (PASTEBOARD_ID%)
CALL LIB$GET_INPUT (RMAR$, "Enter right margin: ")
CALL LIB$PUT_OUTPUT ("Enter text to be centered")
CALL LIB$GET_INPUT (STG$, ": ")
TEMP$ = SPACE$(DECIMAL(RMAR$,2,0)/2-(INT(LEN(STG$)/2))) + STG$
COMMAND$ = "I" + TEMP$ + "^ZREF"
-------------------------------------------------------------------------------
And then you add the following lines to your EDTINI file:
-------------------------------------------------------------------------------
Update for EDTINI.EDT
-------------------------------------------------------------------------------
DEFINE MACRO CENTER
INSERT =CENTER
CHANGE;XLATE CENTER^ZEX
^Z
!
DEFINE KEY GOLD C AS "EXT CENTER."
-------------------------------------------------------------------------------
If you have any questions or comments, I welcome them. Also, if you have any
problems, just let me know.
Editor's Note: This articles references the XEDT editor which was presented in
Issues 2 to 4. So as not to repeat the entire XLATE_ROUTINE and EDTINI files,
I have only included the modified portions in this article. Note that the CASE
statement follows the like CASE statements of the XLATE_ROUTINE and the MACRO
definition does the same for the MACRO definitions in the EDTINI file.
... <abridged>
General Information
-------------------------------------------------------------------------------
This magazine is not sponsored or approved by or connected in any way with
Digital Equipment Corporation or Bell Laboratories. Bell Laboratories is the
owner of the trademark "UNIX". All other trademarks are the property of
Digital Equipment Corporation, unless otherwise indicated.
-------------------------------------------------------------------------------
The VAX Toolbox welcomes article submissions. Please send all article
submissions to [BOAG@MUVMS1].
-------------------------------------------------------------------------------
The VAX Toolbox magazine is published monthly. Subscriptions may be obtained
by sending a message to one of the following servers.
In the USA, send "SUBSCRIBE MD42 your-full-name" to [LISTSERV@CMUCCMVA].
In Europe, send "SUBSCRIBE TOOLBOX your-full-name" to [LISTSERV@FINHUTC].
*****
UBVMS Local Note : There is no need to subscribe since the folder VMS_HINTS in
BULLETIN is already on the subscription list.
*****
-------------------------------------------------------------------------------
Back issues are available via the server [TCSSERVE@TCSVM]. To receive back
issues, send the following command to the server: "SENDME VAXTOOL V001N00x".
(Where x is the issue number you desire.)
-------------------------------------------------------------------------------
*****
UBVMS Local Note : Back issues are available via the server [UBSERVE@UBVMSA].
To receive back issues, send the following command $ SEND
UBSERVE@UBVMSA SEND VAXTOOL V001N00x (Where x is the issue
number you desire.)
*****